#include <iostream>
#include <QDateTime>
using namespace std;

int main(int argc, char *argv[])
{
    QDateTime timestamp = QDateTime::currentDateTime();
    int day = timestamp.date().dayOfYear();
    cout << day << endl;

    return 0;
}